<?php
/**
 * Created by PhpStorm.
 * User: 王泽锋
 * Date: 2018/03/09
 * Time: 11:26
 */

namespace app\home\model;


use think\Model;

class Shopping_address extends Model {
    //首页获取已推送的数据
    public function get_list($where,$length=0){
        $list = $this->where($where)->order('default_address','desc')->select();

        return $list;
    }


    public function get_lists($where,$length=0){
        $list = $this->where($where)->order('default_address','desc')->limit($length,6)->select();
        
        return $list;
    }
    
    
}